import request from '@/router/axios'

export function fetchWxProblemAnswerList(query) {
  return request({
    url: '/mp/wxproblemanswer/page',
    method: 'get',
    params: query
  })
}

export function addWxProblemAnswerObj(obj) {
  return request({
    url: '/mp/wxproblemanswer',
    method: 'post',
    data: obj
  })
}

export function getWxProblemAnswerObj(id) {
  return request({
    url: '/mp/wxproblemanswer/' + id,
    method: 'get'
  })
}

export function delWxProblemAnswerObj(id) {
  return request({
    url: '/mp/wxproblemanswer/' + id,
    method: 'delete'
  })
}

export function putWxProblemAnswerObj(obj) {
  return request({
    url: '/mp/wxproblemanswer',
    method: 'put',
    data: obj
  })
}
